package cn.yunbamboos.mybatis;

import cn.yunbamboos.mybatis.conditions.Conditions;

public interface Constants {

    String AND = "and";
    String OR = "or";
    String DOT = ".";
    String EQUALS = "=";
    String BACKTICK = "`";
    String SPACE = " ";
    String LEFT_BRACE = "{";
    String LEFT_BRACKET = "(";
    String RIGHT_BRACE = "}";
    String RIGHT_BRACKET = ")";
    String SINGLE_QUOTE = "'";
    String DOLLAR_LEFT_BRACE = "${";
    String HASH_LEFT_BRACE = "#{";
    String EXCLAMATION_MARK = "!";
    String NULL = "null";
    // columns tableName
    String SELECT_ALL_MODEL = "select {} from {}";
    // columns tableName wheres
    String SELECT_WHERE_MODEL = "select {} from {} where {}";
    // tableName columns values
    String INSERT_MODEL = "insert into {} ({}) values ({})";
    // tableName sets wheres
    String UPDATE_MODEL = "update {} set {} WHERE {}";
    // tableName wheres
    String DELETE_MODEL = "delete from {} where {}";

    /**
     * 条件类 {@link Conditions}
     * */
    String CONDITIONS = "conditions";
    String PAGE = "page";

}
